<?php
namespace app\agent\controller;

use think\Controller;

/**
 * 公用基础控制器
 */
class BaseController extends Controller {

	protected function _initialize() {
		parent::_initialize();
		
		if(!session('agent_id')){
			$this->redirect('agent/login/login');
		}else{
			$this->assign('maction',request()->action());
		}
		
	}

	

}
